package com.example.skyline.controller;


import com.example.skyline.common.PageCommon;
import com.example.skyline.common.Result;
import com.example.skyline.entity.Log;
import com.example.skyline.entity.LogQuery;
import com.example.skyline.service.ILogService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author git
 * @since 2025-05-16
 */
@RestController
@RequestMapping("/log")
@RequiredArgsConstructor
public class LogController {
    private final ILogService logService;


    @GetMapping
    public Result getLogList(Integer pageNum, Integer pageSize) {

        PageCommon<Log> list = logService.getList(pageNum, pageSize);
        System.out.println(list);
        return Result.success(list);
    }
}
